package com.klei.service.impl;

import com.klei.dao.IOrderDao;
import com.klei.pojo.Orders;
import com.klei.service.IOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderServiceImpl implements IOrderService {

    @Autowired
    private IOrderDao orderDao;

    @Override
    public List<Orders> getOrderByUid(int uid) {
        return orderDao.getOrderByUid(uid);
    }

    @Override
    public boolean saveOrder(Orders order) {
        return orderDao.saveOrder(order) > 0;
    }
}
